import zh_cn from "./lang/zh_cn"
import zh_tw from "./lang/zh_tw"
import en from "./lang/en";
import ja from './lang/ja'
import ko from './lang/ko'

import i18n from 'i18next';
import {initReactI18next} from 'react-i18next';

i18n
    .use(initReactI18next)
    .init({
        resources: {
            zh_cn : {translation : zh_cn},
            zh_tw : {translation : zh_tw},
            en : {translation : en},
            ja : {translation : ja},
            ko : {translation : ko}
        },
        fallbackLng: 'zh_cn',
        debug: process.env.NODE_ENV === 'development',
        interpolation: {
            escapeValue: false,
        }
    });

export default {
    zh_cn,
    zh_tw,
    en,
    ja,
    ko,
    i18n
}